<!doctype html>
<html class="default no-js">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title>MultipleLanguages | lcc-framework(Client2.4.x)</title>
	<meta name="description" content="Documentation for lcc-framework(Client2.4.x)">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link rel="stylesheet" href="../assets/css/main.css">
	<script async src="../assets/js/search.js" id="search-script"></script>
</head>
<body>
<header>
	<div class="tsd-page-toolbar">
		<div class="container">
			<div class="table-wrap">
				<div class="table-cell" id="tsd-search" data-index="../assets/js/search.json" data-base="..">
					<div class="field">
						<label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
						<input id="tsd-search-field" type="text" />
					</div>
					<ul class="results">
						<li class="state loading">Preparing search index...</li>
						<li class="state failure">The search index is not available</li>
					</ul>
					<a href="../index.html" class="title">lcc-framework(Client2.4.x)</a>
				</div>
				<div class="table-cell" id="tsd-widgets">
					<div id="tsd-filter">
						<a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
						<div class="tsd-filter-group">
							<div class="tsd-select" id="tsd-filter-visibility">
								<span class="tsd-select-label">All</span>
								<ul class="tsd-select-list">
									<li data-value="public">Public</li>
									<li data-value="protected">Public/Protected</li>
									<li data-value="private" class="selected">All</li>
								</ul>
							</div>
							<input type="checkbox" id="tsd-filter-inherited" checked />
							<label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
							<input type="checkbox" id="tsd-filter-externals" checked />
							<label class="tsd-widget" for="tsd-filter-externals">Externals</label>
						</div>
					</div>
					<a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
				</div>
			</div>
		</div>
	</div>
	<div class="tsd-page-title">
		<div class="container">
			<ul class="tsd-breadcrumb">
				<li>
					<a href="../modules.html">lcc-framework(Client2.4.x)</a>
				</li>
				<li>
					<a href="../modules/archive_archive_manager.html">archive/archive-manager</a>
				</li>
				<li>
					<a href="../modules/archive_archive_manager.lcc.html">lcc</a>
				</li>
				<li>
					<a href="archive_archive_manager.lcc.multiplelanguages.html">MultipleLanguages</a>
				</li>
			</ul>
			<h1>Class MultipleLanguages</h1>
		</div>
	</div>
</header>
<div class="container container-main">
	<div class="row">
		<div class="col-8 col-content">
			<section class="tsd-panel tsd-comment">
				<div class="tsd-comment tsd-typography">
					<dl class="tsd-comment-tags">
						<dt>zh</dt>
						<dd><p>多语言绑定组件</p>
						</dd>
					</dl>
				</div>
			</section>
			<section class="tsd-panel tsd-hierarchy">
				<h3>Hierarchy</h3>
				<ul class="tsd-hierarchy">
					<li>
						<span class="tsd-signature-type">Component</span>
						<ul class="tsd-hierarchy">
							<li>
								<span class="target">MultipleLanguages</span>
							</li>
						</ul>
					</li>
				</ul>
			</section>
			<section class="tsd-panel-group tsd-index-group">
				<h2>Index</h2>
				<section class="tsd-panel tsd-index-panel">
					<div class="tsd-index-content">
						<section class="tsd-index-section tsd-is-inherited">
							<h3>Constructors</h3>
							<ul class="tsd-index-list">
								<li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><a href="archive_archive_manager.lcc.multiplelanguages.html#constructor" class="tsd-kind-icon">constructor</a></li>
							</ul>
						</section>
						<section class="tsd-index-section ">
							<h3>Properties</h3>
							<ul class="tsd-index-list">
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="archive_archive_manager.lcc.multiplelanguages.html#_isonloadcalled" class="tsd-kind-icon">_is<wbr>OnLoad<wbr>Called</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="archive_archive_manager.lcc.multiplelanguages.html#enabled" class="tsd-kind-icon">enabled</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="archive_archive_manager.lcc.multiplelanguages.html#enabledinhierarchy" class="tsd-kind-icon">enabled<wbr>InHierarchy</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="archive_archive_manager.lcc.multiplelanguages.html#isvalid" class="tsd-kind-icon">is<wbr>Valid</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class"><a href="archive_archive_manager.lcc.multiplelanguages.html#langimages" class="tsd-kind-icon">lang<wbr>Images</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class"><a href="archive_archive_manager.lcc.multiplelanguages.html#langtexts" class="tsd-kind-icon">lang<wbr>Texts</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="archive_archive_manager.lcc.multiplelanguages.html#name" class="tsd-kind-icon">name</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="archive_archive_manager.lcc.multiplelanguages.html#node" class="tsd-kind-icon">node</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="archive_archive_manager.lcc.multiplelanguages.html#uuid" class="tsd-kind-icon">uuid</a></li>
							</ul>
						</section>
						<section class="tsd-index-section ">
							<h3>Methods</h3>
							<ul class="tsd-index-list">
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="archive_archive_manager.lcc.multiplelanguages.html#_getlocalbounds" class="tsd-kind-icon">_get<wbr>Local<wbr>Bounds</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited"><a href="archive_archive_manager.lcc.multiplelanguages.html#addcomponent" class="tsd-kind-icon">add<wbr>Component</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="archive_archive_manager.lcc.multiplelanguages.html#destroy" class="tsd-kind-icon">destroy</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited"><a href="archive_archive_manager.lcc.multiplelanguages.html#getcomponent" class="tsd-kind-icon">get<wbr>Component</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited"><a href="archive_archive_manager.lcc.multiplelanguages.html#getcomponentinchildren" class="tsd-kind-icon">get<wbr>Component<wbr>InChildren</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited"><a href="archive_archive_manager.lcc.multiplelanguages.html#getcomponents" class="tsd-kind-icon">get<wbr>Components</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited"><a href="archive_archive_manager.lcc.multiplelanguages.html#getcomponentsinchildren" class="tsd-kind-icon">get<wbr>Components<wbr>InChildren</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="archive_archive_manager.lcc.multiplelanguages.html#ondestroy" class="tsd-kind-icon">on<wbr>Destroy</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="archive_archive_manager.lcc.multiplelanguages.html#onload" class="tsd-kind-icon">on<wbr>Load</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="archive_archive_manager.lcc.multiplelanguages.html#onrestore" class="tsd-kind-icon">on<wbr>Restore</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="archive_archive_manager.lcc.multiplelanguages.html#schedule" class="tsd-kind-icon">schedule</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="archive_archive_manager.lcc.multiplelanguages.html#scheduleonce" class="tsd-kind-icon">schedule<wbr>Once</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="archive_archive_manager.lcc.multiplelanguages.html#unschedule" class="tsd-kind-icon">unschedule</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="archive_archive_manager.lcc.multiplelanguages.html#unscheduleallcallbacks" class="tsd-kind-icon">unschedule<wbr>All<wbr>Callbacks</a></li>
							</ul>
						</section>
					</div>
				</section>
			</section>
			<section class="tsd-panel-group tsd-member-group tsd-is-inherited">
				<h2>Constructors</h2>
				<section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited">
					<a name="constructor" class="tsd-anchor"></a>
					<h3>constructor</h3>
					<ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited">
						<li class="tsd-signature tsd-kind-icon">new <wbr>Multiple<wbr>Languages<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="archive_archive_manager.lcc.multiplelanguages.html" class="tsd-signature-type" data-tsd-kind="Class">MultipleLanguages</a></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<p>Inherited from cc.Component.constructor</p>
							</aside>
							<h4 class="tsd-returns-title">Returns <a href="archive_archive_manager.lcc.multiplelanguages.html" class="tsd-signature-type" data-tsd-kind="Class">MultipleLanguages</a></h4>
						</li>
					</ul>
				</section>
			</section>
			<section class="tsd-panel-group tsd-member-group ">
				<h2>Properties</h2>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
					<a name="_isonloadcalled" class="tsd-anchor"></a>
					<h3>_is<wbr>OnLoad<wbr>Called</h3>
					<div class="tsd-signature tsd-kind-icon">_is<wbr>OnLoad<wbr>Called<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
					<aside class="tsd-sources">
						<p>Inherited from cc.Component._isOnLoadCalled</p>
						<ul>
							<li>Defined in @types/creator.d.ts:8039</li>
						</ul>
					</aside>
					<div class="tsd-comment tsd-typography">
						<div class="lead">
							<p>!#en Returns a value which used to indicate the onLoad get called or not.
							!#zh 返回一个值用来判断 onLoad 是否被调用过，不等于 0 时调用过，等于 0 时未调用。</p>
						</div>
					</div>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
					<a name="enabled" class="tsd-anchor"></a>
					<h3>enabled</h3>
					<div class="tsd-signature tsd-kind-icon">enabled<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div>
					<aside class="tsd-sources">
						<p>Inherited from cc.Component.enabled</p>
						<ul>
							<li>Defined in @types/creator.d.ts:8033</li>
						</ul>
					</aside>
					<div class="tsd-comment tsd-typography">
						<div class="lead">
							<p>!#en indicates whether this component is enabled or not.
							!#zh 表示该组件自身是否启用。</p>
						</div>
					</div>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
					<a name="enabledinhierarchy" class="tsd-anchor"></a>
					<h3>enabled<wbr>InHierarchy</h3>
					<div class="tsd-signature tsd-kind-icon">enabled<wbr>InHierarchy<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div>
					<aside class="tsd-sources">
						<p>Inherited from cc.Component.enabledInHierarchy</p>
						<ul>
							<li>Defined in @types/creator.d.ts:8036</li>
						</ul>
					</aside>
					<div class="tsd-comment tsd-typography">
						<div class="lead">
							<p>!#en indicates whether this component is enabled and its node is also active in the hierarchy.
							!#zh 表示该组件是否被启用并且所在的节点也处于激活状态。</p>
						</div>
					</div>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
					<a name="isvalid" class="tsd-anchor"></a>
					<h3>is<wbr>Valid</h3>
					<div class="tsd-signature tsd-kind-icon">is<wbr>Valid<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div>
					<aside class="tsd-sources">
						<p>Inherited from cc.Component.isValid</p>
						<ul>
							<li>Defined in @types/creator.d.ts:10748</li>
						</ul>
					</aside>
					<div class="tsd-comment tsd-typography">
						<div class="lead">
							<p>!#en
								Indicates whether the object is not yet destroyed. (It will not be available after being destroyed)<br>
								When an object&#39;s <code>destroy</code> is called, it is actually destroyed after the end of this frame.
								So <code>isValid</code> will return false from the next frame, while <code>isValid</code> in the current frame will still be true.
								If you want to determine whether the current frame has called <code>destroy</code>, use <code>cc.isValid(obj, true)</code>,
							but this is often caused by a particular logical requirements, which is not normally required.</p>
						</div>
						<p>!#zh
							表示该对象是否可用（被 destroy 后将不可用）。<br>
						当一个对象的 <code>destroy</code> 调用以后，会在这一帧结束后才真正销毁。因此从下一帧开始 <code>isValid</code> 就会返回 false，而当前帧内 <code>isValid</code> 仍然会是 true。如果希望判断当前帧是否调用过 <code>destroy</code>，请使用 <code>cc.isValid(obj, true)</code>，不过这往往是特殊的业务需求引起的，通常情况下不需要这样。</p>
					</div>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
					<a name="langimages" class="tsd-anchor"></a>
					<h3>lang<wbr>Images</h3>
					<div class="tsd-signature tsd-kind-icon">lang<wbr>Images<span class="tsd-signature-symbol">:</span> <a href="archive_archive_manager.lcc.langimage.html" class="tsd-signature-type" data-tsd-kind="Class">LangImage</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> = []</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in framework/src/language/multiple-languages.ts:48</li>
						</ul>
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
					<a name="langtexts" class="tsd-anchor"></a>
					<h3>lang<wbr>Texts</h3>
					<div class="tsd-signature tsd-kind-icon">lang<wbr>Texts<span class="tsd-signature-symbol">:</span> <a href="archive_archive_manager.lcc.langtext.html" class="tsd-signature-type" data-tsd-kind="Class">LangText</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> = []</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in framework/src/language/multiple-languages.ts:42</li>
						</ul>
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
					<a name="name" class="tsd-anchor"></a>
					<h3>name</h3>
					<div class="tsd-signature tsd-kind-icon">name<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
					<aside class="tsd-sources">
						<p>Inherited from cc.Component.name</p>
						<ul>
							<li>Defined in @types/creator.d.ts:10737</li>
						</ul>
					</aside>
					<div class="tsd-comment tsd-typography">
						<div class="lead">
							<p>!#en The name of the object.
							!#zh 该对象的名称。</p>
						</div>
					</div>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
					<a name="node" class="tsd-anchor"></a>
					<h3>node</h3>
					<div class="tsd-signature tsd-kind-icon">node<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Node</span></div>
					<aside class="tsd-sources">
						<p>Inherited from cc.Component.node</p>
						<ul>
							<li>Defined in @types/creator.d.ts:8027</li>
						</ul>
					</aside>
					<div class="tsd-comment tsd-typography">
						<div class="lead">
							<p>!#en The node this component is attached to. A component is always attached to a node.
							!#zh 该组件被附加到的节点。组件总会附加到一个节点。</p>
						</div>
					</div>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
					<a name="uuid" class="tsd-anchor"></a>
					<h3>uuid</h3>
					<div class="tsd-signature tsd-kind-icon">uuid<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
					<aside class="tsd-sources">
						<p>Inherited from cc.Component.uuid</p>
						<ul>
							<li>Defined in @types/creator.d.ts:8030</li>
						</ul>
					</aside>
					<div class="tsd-comment tsd-typography">
						<div class="lead">
							<p>!#en The uuid for editor.
							!#zh 组件的 uuid，用于编辑器。</p>
						</div>
					</div>
				</section>
			</section>
			<section class="tsd-panel-group tsd-member-group ">
				<h2>Methods</h2>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
					<a name="_getlocalbounds" class="tsd-anchor"></a>
					<h3>_get<wbr>Local<wbr>Bounds</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
						<li class="tsd-signature tsd-kind-icon">_get<wbr>Local<wbr>Bounds<span class="tsd-signature-symbol">(</span>out_rect<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Rect</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<p>Inherited from cc.Component._getLocalBounds</p>
								<ul>
									<li>Defined in @types/creator.d.ts:8184</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>!#en
										If the component&#39;s bounding box is different from the node&#39;s, you can implement this method to supply
										a custom axis aligned bounding box (AABB), so the editor&#39;s scene view can perform hit test properly.
										!#zh
										如果组件的包围盒与节点不同，您可以实现该方法以提供自定义的轴向对齐的包围盒（AABB），
									以便编辑器的场景视图可以正确地执行点选测试。</p>
								</div>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>out_rect: <span class="tsd-signature-type">Rect</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>the Rect to receive the bounding box</p>
									</div>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited">
					<a name="addcomponent" class="tsd-anchor"></a>
					<h3>add<wbr>Component</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited">
						<li class="tsd-signature tsd-kind-icon">add<wbr>Component&lt;T&gt;<span class="tsd-signature-symbol">(</span>type<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">new </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">T</span></li>
						<li class="tsd-signature tsd-kind-icon">add<wbr>Component<span class="tsd-signature-symbol">(</span>className<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<p>Inherited from cc.Component.addComponent</p>
								<ul>
									<li>Defined in @types/creator.d.ts:8115</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>!#en Adds a component class to the node. You can also add component to node by passing in the name of the script.
									!#zh 向节点添加一个组件类，你还可以通过传入脚本的名称来添加组件。</p>
								</div>
								<dl class="tsd-comment-tags">
									<dt>example</dt>
									<dd><pre><code class="language-js"><span style="color: #0000FF">var</span><span style="color: #000000"> </span><span style="color: #001080">sprite</span><span style="color: #000000"> = </span><span style="color: #001080">node</span><span style="color: #000000">.</span><span style="color: #795E26">addComponent</span><span style="color: #000000">(</span><span style="color: #001080">cc</span><span style="color: #000000">.</span><span style="color: #001080">Sprite</span><span style="color: #000000">);</span>
<span style="color: #0000FF">var</span><span style="color: #000000"> </span><span style="color: #001080">test</span><span style="color: #000000"> = </span><span style="color: #001080">node</span><span style="color: #000000">.</span><span style="color: #795E26">addComponent</span><span style="color: #000000">(</span><span style="color: #A31515">&quot;Test&quot;</span><span style="color: #000000">);</span>
</code></pre>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-type-parameters-title">Type parameters</h4>
							<ul class="tsd-type-parameters">
								<li>
									<h4>T<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Component</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">&gt;</span></h4>
								</li>
							</ul>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>type: <span class="tsd-signature-symbol">new </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">T</span></h5>
									<ul class="tsd-parameters">
										<li class="tsd-parameter-signature">
											<ul class="tsd-signatures tsd-kind-constructor">
												<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">new </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">T</span></li>
											</ul>
											<ul class="tsd-descriptions">
												<li class="tsd-description">
													<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">T</span></h4>
												</li>
											</ul>
										</li>
									</ul>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">T</span></h4>
						</li>
						<li class="tsd-description">
							<aside class="tsd-sources">
								<p>Inherited from cc.Component.addComponent</p>
								<ul>
									<li>Defined in @types/creator.d.ts:8116</li>
								</ul>
							</aside>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>className: <span class="tsd-signature-type">string</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">any</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
					<a name="destroy" class="tsd-anchor"></a>
					<h3>destroy</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
						<li class="tsd-signature tsd-kind-icon">destroy<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<p>Inherited from cc.Component.destroy</p>
								<ul>
									<li>Defined in @types/creator.d.ts:10765</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>!#en
										Destroy this Object, and release all its own references to other objects.<br/>
										Actual object destruction will delayed until before rendering.
										From the next frame, this object is not usable anymore.
										You can use <code>cc.isValid(obj)</code> to check whether the object is destroyed before accessing it.
										!#zh
										销毁该对象，并释放所有它对其它对象的引用。<br/>
										实际销毁操作会延迟到当前帧渲染前执行。从下一帧开始，该对象将不再可用。
									您可以在访问对象之前使用 <code>cc.isValid(obj)</code> 来检查对象是否已被销毁。</p>
								</div>
								<dl class="tsd-comment-tags">
									<dt>example</dt>
									<dd><pre><code class="language-js"><span style="color: #001080">obj</span><span style="color: #000000">.</span><span style="color: #795E26">destroy</span><span style="color: #000000">();</span>
</code></pre>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited">
					<a name="getcomponent" class="tsd-anchor"></a>
					<h3>get<wbr>Component</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited">
						<li class="tsd-signature tsd-kind-icon">get<wbr>Component&lt;T&gt;<span class="tsd-signature-symbol">(</span>type<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{ </span>prototype<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">T</span></li>
						<li class="tsd-signature tsd-kind-icon">get<wbr>Component<span class="tsd-signature-symbol">(</span>className<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<p>Inherited from cc.Component.getComponent</p>
								<ul>
									<li>Defined in @types/creator.d.ts:8134</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>!#en
										Returns the component of supplied type if the node has one attached, null if it doesn&#39;t.<br/>
										You can also get component in the node by passing in the name of the script.
										!#zh
										获取节点上指定类型的组件，如果节点有附加指定类型的组件，则返回，如果没有则为空。<br/>
									传入参数也可以是脚本的名称。</p>
								</div>
								<dl class="tsd-comment-tags">
									<dt>example</dt>
									<dd><pre><code class="language-js"><span style="color: #008000">// get sprite component.</span>
<span style="color: #0000FF">var</span><span style="color: #000000"> </span><span style="color: #001080">sprite</span><span style="color: #000000"> = </span><span style="color: #001080">node</span><span style="color: #000000">.</span><span style="color: #795E26">getComponent</span><span style="color: #000000">(</span><span style="color: #001080">cc</span><span style="color: #000000">.</span><span style="color: #001080">Sprite</span><span style="color: #000000">);</span>
<span style="color: #008000">// get custom test calss.</span>
<span style="color: #0000FF">var</span><span style="color: #000000"> </span><span style="color: #001080">test</span><span style="color: #000000"> = </span><span style="color: #001080">node</span><span style="color: #000000">.</span><span style="color: #795E26">getComponent</span><span style="color: #000000">(</span><span style="color: #A31515">&quot;Test&quot;</span><span style="color: #000000">);</span>
</code></pre>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-type-parameters-title">Type parameters</h4>
							<ul class="tsd-type-parameters">
								<li>
									<h4>T<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Component</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">&gt;</span></h4>
								</li>
							</ul>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>type: <span class="tsd-signature-symbol">{ </span>prototype<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol"> }</span></h5>
									<ul class="tsd-parameters">
										<li class="tsd-parameter">
											<h5>prototype<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">T</span></h5>
										</li>
									</ul>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">T</span></h4>
						</li>
						<li class="tsd-description">
							<aside class="tsd-sources">
								<p>Inherited from cc.Component.getComponent</p>
								<ul>
									<li>Defined in @types/creator.d.ts:8135</li>
								</ul>
							</aside>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>className: <span class="tsd-signature-type">string</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">any</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited">
					<a name="getcomponentinchildren" class="tsd-anchor"></a>
					<h3>get<wbr>Component<wbr>InChildren</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited">
						<li class="tsd-signature tsd-kind-icon">get<wbr>Component<wbr>InChildren&lt;T&gt;<span class="tsd-signature-symbol">(</span>type<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{ </span>prototype<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">T</span></li>
						<li class="tsd-signature tsd-kind-icon">get<wbr>Component<wbr>InChildren<span class="tsd-signature-symbol">(</span>className<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<p>Inherited from cc.Component.getComponentInChildren</p>
								<ul>
									<li>Defined in @types/creator.d.ts:8160</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>!#en Returns the component of supplied type in any of its children using depth first search.
									!#zh 递归查找所有子节点中第一个匹配指定类型的组件。</p>
								</div>
								<dl class="tsd-comment-tags">
									<dt>example</dt>
									<dd><pre><code class="language-js"><span style="color: #0000FF">var</span><span style="color: #000000"> </span><span style="color: #001080">sprite</span><span style="color: #000000"> = </span><span style="color: #001080">node</span><span style="color: #000000">.</span><span style="color: #795E26">getComponentInChildren</span><span style="color: #000000">(</span><span style="color: #001080">cc</span><span style="color: #000000">.</span><span style="color: #001080">Sprite</span><span style="color: #000000">);</span>
<span style="color: #0000FF">var</span><span style="color: #000000"> </span><span style="color: #001080">Test</span><span style="color: #000000"> = </span><span style="color: #001080">node</span><span style="color: #000000">.</span><span style="color: #795E26">getComponentInChildren</span><span style="color: #000000">(</span><span style="color: #A31515">&quot;Test&quot;</span><span style="color: #000000">);</span>
</code></pre>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-type-parameters-title">Type parameters</h4>
							<ul class="tsd-type-parameters">
								<li>
									<h4>T<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Component</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">&gt;</span></h4>
								</li>
							</ul>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>type: <span class="tsd-signature-symbol">{ </span>prototype<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol"> }</span></h5>
									<ul class="tsd-parameters">
										<li class="tsd-parameter">
											<h5>prototype<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">T</span></h5>
										</li>
									</ul>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">T</span></h4>
						</li>
						<li class="tsd-description">
							<aside class="tsd-sources">
								<p>Inherited from cc.Component.getComponentInChildren</p>
								<ul>
									<li>Defined in @types/creator.d.ts:8161</li>
								</ul>
							</aside>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>className: <span class="tsd-signature-type">string</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">any</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited">
					<a name="getcomponents" class="tsd-anchor"></a>
					<h3>get<wbr>Components</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited">
						<li class="tsd-signature tsd-kind-icon">get<wbr>Components&lt;T&gt;<span class="tsd-signature-symbol">(</span>type<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{ </span>prototype<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">[]</span></li>
						<li class="tsd-signature tsd-kind-icon">get<wbr>Components<span class="tsd-signature-symbol">(</span>className<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">[]</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<p>Inherited from cc.Component.getComponents</p>
								<ul>
									<li>Defined in @types/creator.d.ts:8147</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>!#en Returns all components of supplied Type in the node.
									!#zh 返回节点上指定类型的所有组件。</p>
								</div>
								<dl class="tsd-comment-tags">
									<dt>example</dt>
									<dd><pre><code class="language-js"><span style="color: #0000FF">var</span><span style="color: #000000"> </span><span style="color: #001080">sprites</span><span style="color: #000000"> = </span><span style="color: #001080">node</span><span style="color: #000000">.</span><span style="color: #795E26">getComponents</span><span style="color: #000000">(</span><span style="color: #001080">cc</span><span style="color: #000000">.</span><span style="color: #001080">Sprite</span><span style="color: #000000">);</span>
<span style="color: #0000FF">var</span><span style="color: #000000"> </span><span style="color: #001080">tests</span><span style="color: #000000"> = </span><span style="color: #001080">node</span><span style="color: #000000">.</span><span style="color: #795E26">getComponents</span><span style="color: #000000">(</span><span style="color: #A31515">&quot;Test&quot;</span><span style="color: #000000">);</span>
</code></pre>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-type-parameters-title">Type parameters</h4>
							<ul class="tsd-type-parameters">
								<li>
									<h4>T<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Component</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">&gt;</span></h4>
								</li>
							</ul>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>type: <span class="tsd-signature-symbol">{ </span>prototype<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol"> }</span></h5>
									<ul class="tsd-parameters">
										<li class="tsd-parameter">
											<h5>prototype<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">T</span></h5>
										</li>
									</ul>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">[]</span></h4>
						</li>
						<li class="tsd-description">
							<aside class="tsd-sources">
								<p>Inherited from cc.Component.getComponents</p>
								<ul>
									<li>Defined in @types/creator.d.ts:8148</li>
								</ul>
							</aside>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>className: <span class="tsd-signature-type">string</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">[]</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited">
					<a name="getcomponentsinchildren" class="tsd-anchor"></a>
					<h3>get<wbr>Components<wbr>InChildren</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited">
						<li class="tsd-signature tsd-kind-icon">get<wbr>Components<wbr>InChildren&lt;T&gt;<span class="tsd-signature-symbol">(</span>type<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{ </span>prototype<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">[]</span></li>
						<li class="tsd-signature tsd-kind-icon">get<wbr>Components<wbr>InChildren<span class="tsd-signature-symbol">(</span>className<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">[]</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<p>Inherited from cc.Component.getComponentsInChildren</p>
								<ul>
									<li>Defined in @types/creator.d.ts:8173</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>!#en Returns the components of supplied type in self or any of its children using depth first search.
									!#zh 递归查找自身或所有子节点中指定类型的组件</p>
								</div>
								<dl class="tsd-comment-tags">
									<dt>example</dt>
									<dd><pre><code class="language-js"><span style="color: #0000FF">var</span><span style="color: #000000"> </span><span style="color: #001080">sprites</span><span style="color: #000000"> = </span><span style="color: #001080">node</span><span style="color: #000000">.</span><span style="color: #795E26">getComponentsInChildren</span><span style="color: #000000">(</span><span style="color: #001080">cc</span><span style="color: #000000">.</span><span style="color: #001080">Sprite</span><span style="color: #000000">);</span>
<span style="color: #0000FF">var</span><span style="color: #000000"> </span><span style="color: #001080">tests</span><span style="color: #000000"> = </span><span style="color: #001080">node</span><span style="color: #000000">.</span><span style="color: #795E26">getComponentsInChildren</span><span style="color: #000000">(</span><span style="color: #A31515">&quot;Test&quot;</span><span style="color: #000000">);</span>
</code></pre>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-type-parameters-title">Type parameters</h4>
							<ul class="tsd-type-parameters">
								<li>
									<h4>T<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Component</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">&gt;</span></h4>
								</li>
							</ul>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>type: <span class="tsd-signature-symbol">{ </span>prototype<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol"> }</span></h5>
									<ul class="tsd-parameters">
										<li class="tsd-parameter">
											<h5>prototype<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">T</span></h5>
										</li>
									</ul>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">[]</span></h4>
						</li>
						<li class="tsd-description">
							<aside class="tsd-sources">
								<p>Inherited from cc.Component.getComponentsInChildren</p>
								<ul>
									<li>Defined in @types/creator.d.ts:8174</li>
								</ul>
							</aside>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>className: <span class="tsd-signature-type">string</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">[]</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-overwrite">
					<a name="ondestroy" class="tsd-anchor"></a>
					<h3>on<wbr>Destroy</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-overwrite">
						<li class="tsd-signature tsd-kind-icon">on<wbr>Destroy<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<p>Overrides cc.Component.onDestroy</p>
								<ul>
									<li>Defined in framework/src/language/multiple-languages.ts:55</li>
								</ul>
							</aside>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-overwrite">
					<a name="onload" class="tsd-anchor"></a>
					<h3>on<wbr>Load</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-overwrite">
						<li class="tsd-signature tsd-kind-icon">on<wbr>Load<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<p>Overrides cc.Component.onLoad</p>
								<ul>
									<li>Defined in framework/src/language/multiple-languages.ts:50</li>
								</ul>
							</aside>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
					<a name="onrestore" class="tsd-anchor"></a>
					<h3>on<wbr>Restore</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
						<li class="tsd-signature tsd-kind-icon">on<wbr>Restore<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<p>Inherited from cc.Component.onRestore</p>
								<ul>
									<li>Defined in @types/creator.d.ts:8219</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>!#en
										onRestore is called after the user clicks the Reset item in the Inspector&#39;s context menu or performs
										an undo operation on this component.<br/>
										<br/>
										If the component contains the &quot;internal state&quot;, short for &quot;temporary member variables which not included<br/>
										in its CCClass properties&quot;, then you may need to implement this function.<br/>
										<br/>
										The editor will call the getset accessors of your component to record/restore the component&#39;s state<br/>
										for undo/redo operation. However, in extreme cases, it may not works well. Then you should implement<br/>
										this function to manually synchronize your component&#39;s &quot;internal states&quot; with its public properties.<br/>
										Once you implement this function, all the getset accessors of your component will not be called when<br/>
										the user performs an undo/redo operation. Which means that only the properties with default value<br/>
										will be recorded or restored by editor.<br/>
										<br/>
										Similarly, the editor may failed to reset your component correctly in extreme cases. Then if you need<br/>
										to support the reset menu, you should manually synchronize your component&#39;s &quot;internal states&quot; with its<br/>
										properties in this function. Once you implement this function, all the getset accessors of your component<br/>
										will not be called during reset operation. Which means that only the properties with default value<br/>
									will be reset by editor.</p>
								</div>
								<p>This function is only called in editor mode.
									!#zh
									onRestore 是用户在检查器菜单点击 Reset 时，对此组件执行撤消操作后调用的。<br/>
									<br/>
									如果组件包含了“内部状态”（不在 CCClass 属性中定义的临时成员变量），那么你可能需要实现该方法。<br/>
									<br/>
									编辑器执行撤销/重做操作时，将调用组件的 get set 来录制和还原组件的状态。然而，在极端的情况下，它可能无法良好运作。<br/>
									那么你就应该实现这个方法，手动根据组件的属性同步“内部状态”。一旦你实现这个方法，当用户撤销或重做时，组件的所有 get set 都不会再被调用。这意味着仅仅指定了默认值的属性将被编辑器记录和还原。<br/>
									<br/>
									同样的，编辑可能无法在极端情况下正确地重置您的组件。如果你需要支持组件重置菜单，则需要在该方法中手工同步组件属性到“内部状态”。一旦你实现这个方法，组件的所有 get set 都不会在重置操作时被调用。这意味着仅仅指定了默认值的属性将被编辑器重置。
									<br/>
								此方法仅在编辑器下会被调用。</p>
							</div>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
					<a name="schedule" class="tsd-anchor"></a>
					<h3>schedule</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
						<li class="tsd-signature tsd-kind-icon">schedule<span class="tsd-signature-symbol">(</span>callback<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Function</span>, interval<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span>, repeat<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span>, delay<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<p>Inherited from cc.Component.schedule</p>
								<ul>
									<li>Defined in @types/creator.d.ts:8240</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>!#en
										Schedules a custom selector.<br/>
										If the selector is already scheduled, then the interval parameter will be updated without scheduling it again.
										!#zh
										调度一个自定义的回调函数。<br/>
									如果回调函数已调度，那么将不会重复调度它，只会更新时间间隔参数。</p>
								</div>
								<dl class="tsd-comment-tags">
									<dt>example</dt>
									<dd><pre><code class="language-js"><span style="color: #0000FF">var</span><span style="color: #000000"> </span><span style="color: #795E26">timeCallback</span><span style="color: #000000"> = </span><span style="color: #0000FF">function</span><span style="color: #000000"> (</span><span style="color: #001080">dt</span><span style="color: #000000">) {</span>
<span style="color: #001080">cc</span><span style="color: #000000">.</span><span style="color: #795E26">log</span><span style="color: #000000">(</span><span style="color: #A31515">&quot;time: &quot;</span><span style="color: #000000"> + </span><span style="color: #001080">dt</span><span style="color: #000000">);</span>
<span style="color: #000000">}</span>
<span style="color: #0000FF">this</span><span style="color: #000000">.</span><span style="color: #795E26">schedule</span><span style="color: #000000">(</span><span style="color: #001080">timeCallback</span><span style="color: #000000">, </span><span style="color: #098658">1</span><span style="color: #000000">);</span>
</code></pre>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>callback: <span class="tsd-signature-type">Function</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>The callback function</p>
									</div>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> interval: <span class="tsd-signature-type">number</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>Tick interval in seconds. 0 means tick every frame.</p>
									</div>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> repeat: <span class="tsd-signature-type">number</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>The selector will be executed (repeat + 1) times, you can use cc.macro.REPEAT_FOREVER for tick infinitely.</p>
									</div>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> delay: <span class="tsd-signature-type">number</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>The amount of time that the first tick will wait before execution. Unit: s</p>
									</div>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
					<a name="scheduleonce" class="tsd-anchor"></a>
					<h3>schedule<wbr>Once</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
						<li class="tsd-signature tsd-kind-icon">schedule<wbr>Once<span class="tsd-signature-symbol">(</span>callback<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Function</span>, delay<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<p>Inherited from cc.Component.scheduleOnce</p>
								<ul>
									<li>Defined in @types/creator.d.ts:8255</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>!#en Schedules a callback function that runs only once, with a delay of 0 or larger.
									!#zh 调度一个只运行一次的回调函数，可以指定 0 让回调函数在下一帧立即执行或者在一定的延时之后执行。</p>
								</div>
								<dl class="tsd-comment-tags">
									<dt>example</dt>
									<dd><pre><code class="language-js"><span style="color: #0000FF">var</span><span style="color: #000000"> </span><span style="color: #795E26">timeCallback</span><span style="color: #000000"> = </span><span style="color: #0000FF">function</span><span style="color: #000000"> (</span><span style="color: #001080">dt</span><span style="color: #000000">) {</span>
<span style="color: #001080">cc</span><span style="color: #000000">.</span><span style="color: #795E26">log</span><span style="color: #000000">(</span><span style="color: #A31515">&quot;time: &quot;</span><span style="color: #000000"> + </span><span style="color: #001080">dt</span><span style="color: #000000">);</span>
<span style="color: #000000">}</span>
<span style="color: #0000FF">this</span><span style="color: #000000">.</span><span style="color: #795E26">scheduleOnce</span><span style="color: #000000">(</span><span style="color: #001080">timeCallback</span><span style="color: #000000">, </span><span style="color: #098658">2</span><span style="color: #000000">);</span>
</code></pre>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>callback: <span class="tsd-signature-type">Function</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>A function wrapped as a selector</p>
									</div>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagOptional">Optional</span> delay: <span class="tsd-signature-type">number</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>The amount of time that the first tick will wait before execution. Unit: s</p>
									</div>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
					<a name="unschedule" class="tsd-anchor"></a>
					<h3>unschedule</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
						<li class="tsd-signature tsd-kind-icon">unschedule<span class="tsd-signature-symbol">(</span>callback_fn<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Function</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<p>Inherited from cc.Component.unschedule</p>
								<ul>
									<li>Defined in @types/creator.d.ts:8266</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>!#en Unschedules a custom callback function.
									!#zh 取消调度一个自定义的回调函数。</p>
								</div>
								<dl class="tsd-comment-tags">
									<dt>example</dt>
									<dd><pre><code class="language-js"><span style="color: #0000FF">this</span><span style="color: #000000">.</span><span style="color: #795E26">unschedule</span><span style="color: #000000">(</span><span style="color: #001080">_callback</span><span style="color: #000000">);</span>
</code></pre>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>callback_fn: <span class="tsd-signature-type">Function</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>A function wrapped as a selector</p>
									</div>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
					<a name="unscheduleallcallbacks" class="tsd-anchor"></a>
					<h3>unschedule<wbr>All<wbr>Callbacks</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
						<li class="tsd-signature tsd-kind-icon">unschedule<wbr>All<wbr>Callbacks<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<p>Inherited from cc.Component.unscheduleAllCallbacks</p>
								<ul>
									<li>Defined in @types/creator.d.ts:8278</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>!#en
										unschedule all scheduled callback functions: custom callback functions, and the &#39;update&#39; callback function.<br/>
										Actions are not affected by this method.
									!#zh 取消调度所有已调度的回调函数：定制的回调函数以及 <code>update</code> 回调函数。动作不受此方法影响。</p>
								</div>
								<dl class="tsd-comment-tags">
									<dt>example</dt>
									<dd><pre><code class="language-js"><span style="color: #0000FF">this</span><span style="color: #000000">.</span><span style="color: #795E26">unscheduleAllCallbacks</span><span style="color: #000000">();</span>
</code></pre>
									</dd>
								</dl>
							</div>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
						</li>
					</ul>
				</section>
			</section>
		</div>
		<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
			<nav class="tsd-navigation primary">
				<ul>
					<li class=" ">
						<a href="../modules.html">Exports</a>
					</li>
					<li class="current tsd-kind-module">
						<a href="../modules/archive_archive_manager.html">archive/archive-<wbr>manager</a>
						<ul>
							<li class="current tsd-kind-namespace tsd-parent-kind-module">
								<a href="../modules/archive_archive_manager.lcc.html">lcc</a>
								<ul>
									<li class=" tsd-kind-namespace tsd-parent-kind-namespace">
										<a href="../modules/archive_archive_manager.lcc.debug.html">DEBUG</a>
									</li>
									<li class=" tsd-kind-namespace tsd-parent-kind-namespace">
										<a href="../modules/archive_archive_manager.lcc.error.html">ERROR</a>
									</li>
									<li class=" tsd-kind-namespace tsd-parent-kind-namespace">
										<a href="../modules/archive_archive_manager.lcc.events.html">Events</a>
									</li>
									<li class=" tsd-kind-namespace tsd-parent-kind-namespace">
										<a href="../modules/archive_archive_manager.lcc.indexpath.html">INDEXPATH</a>
									</li>
									<li class=" tsd-kind-namespace tsd-parent-kind-namespace">
										<a href="../modules/archive_archive_manager.lcc.netlinetype.html">Net<wbr>Line<wbr>Type</a>
									</li>
									<li class=" tsd-kind-namespace tsd-parent-kind-namespace">
										<a href="../modules/archive_archive_manager.lcc._decorator.html">_decorator</a>
									</li>
									<li class=" tsd-kind-namespace tsd-parent-kind-namespace">
										<a href="../modules/archive_archive_manager.lcc.asset.html">asset</a>
									</li>
									<li class=" tsd-kind-namespace tsd-parent-kind-namespace">
										<a href="../modules/archive_archive_manager.lcc.fs.html">fs</a>
									</li>
									<li class=" tsd-kind-namespace tsd-parent-kind-namespace">
										<a href="../modules/archive_archive_manager.lcc.http.html">http</a>
									</li>
									<li class=" tsd-kind-namespace tsd-parent-kind-namespace">
										<a href="../modules/archive_archive_manager.lcc.js.html">js</a>
									</li>
									<li class=" tsd-kind-namespace tsd-parent-kind-namespace">
										<a href="../modules/archive_archive_manager.lcc.math.html">math</a>
									</li>
									<li class=" tsd-kind-namespace tsd-parent-kind-namespace">
										<a href="../modules/archive_archive_manager.lcc.netdata.html">netdata</a>
									</li>
								</ul>
							</li>
						</ul>
					</li>
				</ul>
			</nav>
			<nav class="tsd-navigation secondary menu-sticky">
				<ul class="before-current">
				</ul>
				<ul class="current">
					<li class="current tsd-kind-class tsd-parent-kind-namespace">
						<a href="archive_archive_manager.lcc.multiplelanguages.html" class="tsd-kind-icon">Multiple<wbr>Languages</a>
						<ul>
							<li class=" tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited">
								<a href="archive_archive_manager.lcc.multiplelanguages.html#constructor" class="tsd-kind-icon">constructor</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
								<a href="archive_archive_manager.lcc.multiplelanguages.html#_isonloadcalled" class="tsd-kind-icon">_is<wbr>OnLoad<wbr>Called</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
								<a href="archive_archive_manager.lcc.multiplelanguages.html#enabled" class="tsd-kind-icon">enabled</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
								<a href="archive_archive_manager.lcc.multiplelanguages.html#enabledinhierarchy" class="tsd-kind-icon">enabled<wbr>InHierarchy</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
								<a href="archive_archive_manager.lcc.multiplelanguages.html#isvalid" class="tsd-kind-icon">is<wbr>Valid</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class">
								<a href="archive_archive_manager.lcc.multiplelanguages.html#langimages" class="tsd-kind-icon">lang<wbr>Images</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class">
								<a href="archive_archive_manager.lcc.multiplelanguages.html#langtexts" class="tsd-kind-icon">lang<wbr>Texts</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
								<a href="archive_archive_manager.lcc.multiplelanguages.html#name" class="tsd-kind-icon">name</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
								<a href="archive_archive_manager.lcc.multiplelanguages.html#node" class="tsd-kind-icon">node</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
								<a href="archive_archive_manager.lcc.multiplelanguages.html#uuid" class="tsd-kind-icon">uuid</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
								<a href="archive_archive_manager.lcc.multiplelanguages.html#_getlocalbounds" class="tsd-kind-icon">_get<wbr>Local<wbr>Bounds</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited">
								<a href="archive_archive_manager.lcc.multiplelanguages.html#addcomponent" class="tsd-kind-icon">add<wbr>Component</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
								<a href="archive_archive_manager.lcc.multiplelanguages.html#destroy" class="tsd-kind-icon">destroy</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited">
								<a href="archive_archive_manager.lcc.multiplelanguages.html#getcomponent" class="tsd-kind-icon">get<wbr>Component</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited">
								<a href="archive_archive_manager.lcc.multiplelanguages.html#getcomponentinchildren" class="tsd-kind-icon">get<wbr>Component<wbr>InChildren</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited">
								<a href="archive_archive_manager.lcc.multiplelanguages.html#getcomponents" class="tsd-kind-icon">get<wbr>Components</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited">
								<a href="archive_archive_manager.lcc.multiplelanguages.html#getcomponentsinchildren" class="tsd-kind-icon">get<wbr>Components<wbr>InChildren</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-overwrite">
								<a href="archive_archive_manager.lcc.multiplelanguages.html#ondestroy" class="tsd-kind-icon">on<wbr>Destroy</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-overwrite">
								<a href="archive_archive_manager.lcc.multiplelanguages.html#onload" class="tsd-kind-icon">on<wbr>Load</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
								<a href="archive_archive_manager.lcc.multiplelanguages.html#onrestore" class="tsd-kind-icon">on<wbr>Restore</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
								<a href="archive_archive_manager.lcc.multiplelanguages.html#schedule" class="tsd-kind-icon">schedule</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
								<a href="archive_archive_manager.lcc.multiplelanguages.html#scheduleonce" class="tsd-kind-icon">schedule<wbr>Once</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
								<a href="archive_archive_manager.lcc.multiplelanguages.html#unschedule" class="tsd-kind-icon">unschedule</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
								<a href="archive_archive_manager.lcc.multiplelanguages.html#unscheduleallcallbacks" class="tsd-kind-icon">unschedule<wbr>All<wbr>Callbacks</a>
							</li>
						</ul>
					</li>
				</ul>
				<ul class="after-current">
				</ul>
			</nav>
		</div>
	</div>
</div>
<footer class="with-border-bottom">
	<div class="container">
		<h2>Legend</h2>
		<div class="tsd-legend-group">
			<ul class="tsd-legend">
				<li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited constructor</span></li>
				<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited property</span></li>
				<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited method</span></li>
			</ul>
			<ul class="tsd-legend">
				<li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li>
				<li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li>
			</ul>
			<ul class="tsd-legend">
				<li class="tsd-kind-namespace"><span class="tsd-kind-icon">Namespace</span></li>
			</ul>
		</div>
	</div>
</footer>
<div class="container tsd-generator">
	<p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p>
</div>
<div class="overlay"></div>
<script src="../assets/js/main.js"></script>
</body>
</html>